package com.seezoon.domain.service.user.vo;

import com.seezoon.infrastructure.exception.Assertion;

public class UserRegisterTypeVO {

    public static final int MOBILE = 1;
    public static final int EMAIL = 2;

    public static void check(int code) {
        Assertion.isTrue(code == MOBILE || code == EMAIL, "code error");
    }

    public static boolean isMobile(int code) {
        return code == MOBILE;
    }

    public static boolean isEmail(int code) {
        return code == EMAIL;
    }
}
